package com.hundsun.cprs.yyt.service.account.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hundsun.cprs.yyt.service.account.domain.AccountQuotaDaily;
import com.hundsun.cprs.yyt.service.account.domain.query.AccountQuotaDailyQuery;

public interface AccountQuotaDailyDao {
    int deleteByPrimaryKey(Long id);
    
    int deleteByReportDate(@Param("reportDate") Date reportDate);

    int insert(AccountQuotaDaily record);

    int insertSelective(AccountQuotaDaily record);
    
    int insertFromQuotaLog(@Param("startDate") Date startDate,@Param("endDate") Date endDate);
    
    AccountQuotaDaily selectByPrimaryKey(Long id);
    
    List<AccountQuotaDaily> selectByQuery(AccountQuotaDailyQuery query);
    
    AccountQuotaDaily sumByQuery(AccountQuotaDailyQuery query);

    int updateByPrimaryKeySelective(AccountQuotaDaily record);

    int updateByPrimaryKey(AccountQuotaDaily record);
}